package com.chance.cc.crawler.prod.command.trigger.domain.news.cctv;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.meta.core.bean.CrawlerMetaConstant;
import com.chance.cc.crawler.prod.command.meta.cctv.CCTVSearchArticleCrawlerSchedulerJob;

import static com.chance.cc.crawler.prod.command.trigger.CommonCrawlerSchedulerTrigger.metaServiceCommand_17;

public class CCTVSearchArticleCrawlerScheduleTrigger {
    public static void main(String[] args) {
        publishCCTVArticleRealtimeScheduleTriggerInfo();
    }

    public static void publishCCTVArticleRealtimeScheduleTriggerInfo() {
        CrawlerJob crawlerJob = CCTVSearchArticleCrawlerSchedulerJob.crawlerScheduler();
        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                CCTVSearchArticleCrawlerSchedulerJob.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Simple,
                //"0 0 3 ? * *",
                "",
                "央视网追溯7日文章采集任务，每天采集一次"
        );
    }
}
